import java.text.Normalizer;

class TratarStringUpperCodec
{
	static encode =
	{
		str ->
        str = str.trim()  		  
		str = Normalizer.normalize(str, Normalizer.Form.NFD);  
		str = str.replaceAll("[^\\p{ASCII}]", "");
		str = str.toUpperCase()	      
		return str
	}
}